package Capa_Datos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the alumno database table.
 * 
 */
@Entity
@Table(name="alumno")
public class CD_Alumno implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique=true, nullable=false, length=9)
	private String idAlumno;

	//uni-directional one-to-one association to CD_Persona
	@OneToOne(cascade={CascadeType.ALL})
	@JoinColumn(name="idAlumno", nullable=false, insertable=false, updatable=false)
	private CD_Persona persona;

	public CD_Alumno() {
	}

	public String getIdAlumno() {
		return this.idAlumno;
	}

	public void setIdAlumno(String idAlumno) {
		this.idAlumno = idAlumno;
	}

	public CD_Persona getPersona() {
		return this.persona;
	}

	public void setPersona(CD_Persona persona) {
		this.persona = persona;
	}

}